import java.net.InetAddress;
import java.util.Vector;

public class Peer {
	
	private String name;
	private Vector<MyFile> files;
	private InetAddress IP;
	private int listenPort;
	
	public Peer() {
		
	}

	public Peer(String name, InetAddress IP, int listenPort) {
		this.setListenPort(listenPort);
		this.setName(name);
		this.IP = IP;
		files = new Vector<MyFile>();

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Vector<MyFile> getFiles() {
		return files;
	}

	public void setFiles(Vector<MyFile> files) {
		this.files = files;
	}

	public InetAddress getIP() {
		return IP;
	}

	public void setIP(InetAddress iP) {
		IP = iP;
	}

	public int getListenPort() {
		return listenPort;
	}

	public void setListenPort(int listenPort) {
		this.listenPort = listenPort;
	}
}
